package com.qijian.maindata.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qijian.maindata.domain.ProcessOrderQuota;
import com.qijian.maindata.domain.query.ProcessOrderQuotaQuery;
import com.qijian.maindata.domain.vo.ProcessOrderQuotaVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 工单定额异常 流程Mapper接口
 *
 * @author qijian
 * @date 2024-04-23
 */
public interface ProcessOrderQuotaMapper extends BaseMapper<ProcessOrderQuota> {

    @Select("select count(0) from main_process_order_quota WHERE create_time >= CURRENT_DATE ")
    int countCurrentDateWithDel();


    Page<ProcessOrderQuotaVo> pageList(Page page, @Param(Constants.WRAPPER) Wrapper<ProcessOrderQuotaQuery> queryWrapper, @Param("query") ProcessOrderQuotaQuery query);
}
